//
//  MoveToForward.h
//  client
//
//  Created by DuanHongbo on 15/1/29.
//
//

#ifndef __client__MoveToForward__
#define __client__MoveToForward__

#include <stdio.h>
#include "MoveByForward.h"

USING_NS_CC;

class MoveToForward : public MoveByForward
{
public:
    /** creates the action */
    static MoveToForward* create(float duration, const Vec2& position,bool autoHeadOn = false, float initAngle = 0);

    virtual MoveToForward* clone() const override;
    virtual void startWithTarget(Node *target) override;
    
CC_CONSTRUCTOR_ACCESS:
    MoveToForward() {}
    virtual ~MoveToForward() {}
    
    /** initializes the action */
    bool initWithDuration(float duration, const Vec3& position,bool autoHeadOn, float initAngle);
    
protected:
    Vec3 _endPosition;
    
private:
    CC_DISALLOW_COPY_AND_ASSIGN(MoveToForward);
};

#endif /* defined(__client__MoveToForward__) */
